// 对外暴露的配置路由
export const constantRoute = [{
    path: "/login",
    component: () => import("@/views/login/index.vue"),
    name: "login", // 命名路由
    meta: {
      title: "登录",
      hidden: true, // 路由是否隐藏：true隐藏，false显示
      keepAlive:true,
    },
  },
  {
    path: "/information_overview_layout",
    component: () => import("@/views/layout/index.vue"),
    name: "layout", // 命名路由
    meta: {
      title: "信息概览",
      hidden: false, // 路由是否隐藏：true隐藏，false显示
      icon: "ChatLineSquare",
      keepAlive:true,
    },
    redirect: '/information_overview',
    children: [{
      path: '/information_overview',
      name: "information_overview", // 命名路由
      component: () => import("@/views/information_overview_layout/information_overview/index.vue"),
      meta: {
        title: "信息概览",
        hidden: false, // 路由是否隐藏：true隐藏，false显示
        icon: "ChatLineSquare",
        keepAlive:true,
      },
    }, ]
  },
  {
    path: "/404",
    component: () => import("@/views/404/index.vue"),
    name: "404", // 命名路由
    meta: {
      title: "404",
      hidden: true, // 路由是否隐藏：true隐藏，false显示
      keepAlive:false,
    },
  },
  {
    path: "/:pathMatch(.*)*",
    redirect: "/login",
    name: "any",
    meta: {
      title: "任意路由",
      hidden: true, // 路由是否隐藏：true隐藏，false显示
      keepAlive:false,
    },
  },
  {
    path: "/data_monitor",
    component: () => import("@/views/layout/index.vue"),
    name: "data_monitor", // 命名路由
    meta: {
      title: "数据监控",
      hidden: false, // 路由是否隐藏：true隐藏，false显示
      icon: "Monitor",
      keepAlive:true,
    },
    redirect: '/test_pile_list',
    children: [{
        path: '/test_pile_list',
        name: "test_pile_list", // 命名路由
        component: () => import("@/views/data_monitor/test_pile_list/index.vue"),
        meta: {
          title: "测试桩列表",
          hidden: false, // 路由是否隐藏：true隐藏，false显示
          icon: "Document",
          keepAlive:true,
        },
      }, {
        path: '/list_of_potentiostats',
        name: "list_of_potentiostats", // 命名路由
        component: () => import("@/views/data_monitor/list_of_potentiostats/index.vue"),
        meta: {
          title: "恒电位仪列表",
          hidden: false, // 路由是否隐藏：true隐藏，false显示
          icon: "Notebook",
          keepAlive:true,
        },
      }, {
        path: '/list_of_synchronous_satellite_data',
        name: "list_of_synchronous_satellite_data", // 命名路由
        component: () => import("@/views/data_monitor/list_of_synchronous_satellite_data/index.vue"),
        meta: {
          title: "同步卫星数据列表",
          hidden: false, // 路由是否隐藏：true隐藏，false显示
          icon: "Tickets",
          keepAlive:true,
        },
      },
      {
        path: '/list_of_insulated_joints',
        name: "list_of_insulated_joints", // 命名路由
        component: () => import("@/views/data_monitor/list_of_insulated_joints/index.vue"),
        meta: {
          title: "绝缘接头列表",
          hidden: false, // 路由是否隐藏：true隐藏，false显示
          icon: "Memo",
          keepAlive:true,
        },
      },


    ]
  },
  {
    path: "/monitoring_alarms",
    component: () => import("@/views/layout/index.vue"),
    name: "monitoring_alarms", // 命名路由
    meta: {
      title: "监控告警",
      hidden: false, // 路由是否隐藏：true隐藏，false显示
      icon: "WarnTriangleFilled",
      keepAlive:true,
    },
    redirect: '/test_pile_alarm',
    children: [{
        path: '/test_pile_alarm',
        name: "test_pile_alarm", // 命名路由
        component: () => import("@/views/monitoring_alarms/test_pile_alarm/index.vue"),
        meta: {
          title: "测试桩告警",
          hidden: false, // 路由是否隐藏：true隐藏，false显示
          icon: "WarningFilled",
          keepAlive:true,
        },
      }, {
        path: '/constant_potential_meter_alarm',
        name: "constant_potential_meter_alarm", // 命名路由
        component: () => import("@/views/monitoring_alarms/constant_potential_meter_alarm/index.vue"),
        meta: {
          title: "恒电位仪告警",
          hidden: false, // 路由是否隐藏：true隐藏，false显示
          icon: "InfoFilled",
          keepAlive:true,
        },
      }, {
        path: '/insulation_joint_alarm',
        name: "insulation_joint_alarm", // 命名路由
        component: () => import("@/views/monitoring_alarms/insulation_joint_alarm/index.vue"),
        meta: {
          title: "绝缘接头告警",
          hidden: false, // 路由是否隐藏：true隐藏，false显示
          icon: "QuestionFilled",
          keepAlive:true,
        },
      },



    ]
  },
  {
    path: "/statistic_analysis",
    component: () => import("@/views/layout/index.vue"),
    name: "statistic_analysis", // 命名路由
    meta: {
      title: "统计分析",
      hidden: false, // 路由是否隐藏：true隐藏，false显示
      icon: "TrendCharts",
      keepAlive:true,
    },
    redirect: '/test_pile_data_analysis',
    children: [{
        path: '/test_pile_data_analysis',
        name: "test_pile_data_analysis", // 命名路由
        component: () => import("@/views/statistic_analysis/test_pile_data_analysis/index.vue"),
        meta: {
          title: "测试桩数据分析",
          hidden: false, // 路由是否隐藏：true隐藏，false显示
          icon: "DataAnalysis",
          keepAlive:true,
        },
      }, {
        path: '/data_analysis_of_potentiostat',
        name: "data_analysis_of_potentiostat", // 命名路由
        component: () => import("@/views/statistic_analysis/data_analysis_of_potentiostat/index.vue"),
        meta: {
          title: "恒电位仪数据分析",
          hidden: false, // 路由是否隐藏：true隐藏，false显示
          icon: "DataBoard",
          keepAlive:true,
        },
      }, {
        path: '/synchronous_satellite_data_analysis',
        name: "synchronous_satellite_data_analysis", // 命名路由
        component: () => import("@/views/statistic_analysis/synchronous_satellite_data_analysis/index.vue"),
        meta: {
          title: "同步卫星数据分析",
          hidden: false, // 路由是否隐藏：true隐藏，false显示
          icon: "DataLine",
          keepAlive:true,
        },
      },
      {
        path: '/analysis_of_insulation_joint_data',
        name: "analysis_of_insulation_joint_data", // 命名路由
        component: () => import("@/views/statistic_analysis/analysis_of_insulation_joint_data/index.vue"),
        meta: {
          title: "绝缘接头数据分析",
          hidden: false, // 路由是否隐藏：true隐藏，false显示
          icon: "Reading",
          keepAlive:true,
        },
      }, {
        path: '/test_pile_report',
        name: "test_pile_report", // 命名路由
        component: () => import("@/views/statistic_analysis/test_pile_report/index.vue"),
        meta: {
          title: "测试桩报表",
          hidden: false, // 路由是否隐藏：true隐藏，false显示
          icon: "ScaleToOriginal",
          keepAlive:true,
        },
      },
      {
        path: '/constant_potential_meter_report',
        name: "constant_potential_meter_report", // 命名路由
        component: () => import("@/views/statistic_analysis/constant_potential_meter_report/index.vue"),
        meta: {
          title: "恒电位仪报表",
          hidden: false, // 路由是否隐藏：true隐藏，false显示
          icon: "Collection",
          keepAlive:true,
        },
      }, {
        path: '/synchronous_satellite_report',
        name: "synchronous_satellite_report", // 命名路由
        component: () => import("@/views/statistic_analysis/synchronous_satellite_report/index.vue"),
        meta: {
          title: "同步卫星报表",
          hidden: false, // 路由是否隐藏：true隐藏，false显示
          icon: "DocumentChecked",
          keepAlive:true,
        },
      }, {
        path: '/insulation_joint_report',
        name: "insulation_joint_report", // 命名路由
        component: () => import("@/views/statistic_analysis/insulation_joint_report/index.vue"),
        meta: {
          title: "绝缘接头报表",
          hidden: false, // 路由是否隐藏：true隐藏，false显示
          icon: "Checked",
          keepAlive:true,
        },
      },



    ]
  },
  // {
  //   path: "/expert_countermeasures",
  //   component: () => import("@/views/layout/index.vue"),
  //   name: "expert_countermeasures", // 命名路由
  //   meta: {
  //     title: "专家对策",
  //     hidden: false, // 路由是否隐藏：true隐藏，false显示
  //     icon: "Share",
  //   },
  //   redirect: '/expert_advice',
  //   children: [{
  //     path: '/expert_advice',
  //     name: "expert_advice", // 命名路由
  //     component: () => import("@/views/expert_countermeasures/expert_advice/index.vue"),
  //     meta: {
  //       title: "专家建议",
  //       hidden: false, // 路由是否隐藏：true隐藏，false显示
  //       icon: "StarFilled",
  //     },
  //   },
  //   {
  //     path: '/problem_feedback',
  //     name: "problem_feedback", // 命名路由
  //     component: () => import("@/views/expert_countermeasures/problem_feedback/index.vue"),
  //     meta: {
  //       title: "问题反馈",
  //       hidden: false, // 路由是否隐藏：true隐藏，false显示
  //       icon: "QuestionFilled",
  //     },
  //   }, 
  //     {
  //     path: '/expert_archives',
  //     name: "expert_archives", // 命名路由
  //     component: () => import("@/views/expert_countermeasures/expert_archives/index.vue"),
  //     meta: {
  //       title: "专家档案",
  //       hidden: false, // 路由是否隐藏：true隐藏，false显示
  //       icon: "Histogram",
  //     },
  //   }, ]
  // },
  // {
  //   path: "/system_center",
  //   component: () => import("@/views/layout/index.vue"),
  //   name: "system_center", // 命名路由
  //   meta: {
  //     title: "系统中心",
  //     hidden: false, // 路由是否隐藏：true隐藏，false显示
  //     icon: "Grid",
  //   },
  //   redirect: '/modify_user_information',
  //   children: [{
  //       path: '/modify_user_information',
  //       name: "modify_user_information", // 命名路由
  //       component: () => import("@/views/system_center/modify_user_information/index.vue"),
  //       meta: {
  //         title: "修改用户信息",
  //         hidden: false, // 路由是否隐藏：true隐藏，false显示
  //         icon: "UserFilled",
  //       },
  //     }, {
  //       path: '/change_password',
  //       name: "change_password", // 命名路由
  //       component: () => import("@/views/system_center/change_password/index.vue"),
  //       meta: {
  //         title: "修改密码",
  //         hidden: false, // 路由是否隐藏：true隐藏，false显示
  //         icon: "CirclePlusFilled",
  //       },
  //     },
  //     {
  //       path: '/message_template',
  //       name: "message_template", // 命名路由
  //       component: () => import("@/views/system_center/message_template/index.vue"),
  //       meta: {
  //         title: "消息模版",
  //         hidden: false, // 路由是否隐藏：true隐藏，false显示
  //         icon: "Tools",
  //       },
  //     },
  //   ]
  // },
  // {
  //   path: "/customer_hub",
  //   component: () => import("@/views/layout/index.vue"),
  //   name: "customer_hub", // 命名路由
  //   meta: {
  //     title: "客户中心",
  //     hidden: false, // 路由是否隐藏：true隐藏，false显示
  //     icon: "HomeFilled",
  //   },
  //   redirect: '/customer_management',
  //   children: [{
  //       path: '/customer_management',
  //       name: "customer_management", // 命名路由
  //       component: () => import("@/views/customer_hub/customer_management/index.vue"),
  //       meta: {
  //         title: "客户管理",
  //         hidden: false, // 路由是否隐藏：true隐藏，false显示
  //         icon: "Avatar",
  //       },
  //     }, {
  //       path: '/personnel_management',
  //       name: "personnel_management", // 命名路由
  //       component: () => import("@/views/customer_hub/personnel_management/index.vue"),
  //       meta: {
  //         title: "人员管理",
  //         hidden: false, // 路由是否隐藏：true隐藏，false显示
  //         icon: "UserFilled",
  //       },
  //     },
  //     {
  //       path: '/pipeline_management',
  //       name: "pipeline_management", // 命名路由
  //       component: () => import("@/views/customer_hub/pipeline_management/index.vue"),
  //       meta: {
  //         title: "管线管理",
  //         hidden: false, // 路由是否隐藏：true隐藏，false显示
  //         icon: "Pointer",
  //       },
  //     },
  //     {
  //       path: '/monitoring_point_management',
  //       name: "monitoring_point_management", // 命名路由
  //       component: () => import("@/views/customer_hub/monitoring_point_management/index.vue"),
  //       meta: {
  //         title: "监测点管理",
  //         hidden: false, // 路由是否隐藏：true隐藏，false显示
  //         icon: "Search",
  //       },
  //     },
  //     {
  //       path: '/rules_manager',
  //       name: "rules_manager", // 命名路由
  //       component: () => import("@/views/customer_hub/rules_manager/index.vue"),
  //       meta: {
  //         title: "规则管理",
  //         hidden: false, // 路由是否隐藏：true隐藏，false显示
  //         icon: "DocumentCopy",
  //       },
  //     },
  //   ]
  // },
];


//#region 异步路由
export const asyncRoutr_admin = [
  {
    path: "/expert_countermeasures",
    component: () => import("@/views/layout/index.vue"),
    name: "expert_countermeasures", // 命名路由
    meta: {
      title: "专家对策",
      hidden: false, // 路由是否隐藏：true隐藏，false显示
      icon: "Share",
      keepAlive:true,
    },
    redirect: '/expert_advice',
    children: [{
      path: '/expert_advice',
      name: "expert_advice", // 命名路由
      component: () => import("@/views/expert_countermeasures/expert_advice/index.vue"),
      meta: {
        title: "专家建议",
        hidden: false, // 路由是否隐藏：true隐藏，false显示
        icon: "StarFilled",
        keepAlive:true,
      },
    },
   
      {
      path: '/expert_archives',
      name: "expert_archives", // 命名路由
      component: () => import("@/views/expert_countermeasures/expert_archives/index.vue"),
      meta: {
        title: "专家档案",
        hidden: false, // 路由是否隐藏：true隐藏，false显示
        icon: "Histogram",
        keepAlive:true,
      },
    }, ]
  },
  {
    path: "/system_center",
    component: () => import("@/views/layout/index.vue"),
    name: "system_center", // 命名路由
    meta: {
      title: "系统中心",
      hidden: false, // 路由是否隐藏：true隐藏，false显示
      icon: "Grid",
      keepAlive:true,
    },
    redirect: '/modify_user_information',
    children: [
      // {
      //   path: '/modify_user_information',
      //   name: "modify_user_information", // 命名路由
      //   component: () => import("@/views/system_center/modify_user_information/index.vue"),
      //   meta: {
      //     title: "修改用户信息",
      //     hidden: false, // 路由是否隐藏：true隐藏，false显示
      //     icon: "UserFilled",
      //   },
      // }, {
      //   path: '/change_password',
      //   name: "change_password", // 命名路由
      //   component: () => import("@/views/system_center/change_password/index.vue"),
      //   meta: {
      //     title: "修改密码",
      //     hidden: false, // 路由是否隐藏：true隐藏，false显示
      //     icon: "CirclePlusFilled",
      //   },
      // },
      {
        path: '/message_template',
        name: "message_template", // 命名路由
        component: () => import("@/views/system_center/message_template/index.vue"),
        meta: {
          title: "消息模版",
          hidden: false, // 路由是否隐藏：true隐藏，false显示
          icon: "Tools",
          keepAlive:true,
        },
      },
    ]
  },
  {
    path: "/customer_hub",
    component: () => import("@/views/layout/index.vue"),
    name: "customer_hub", // 命名路由
    meta: {
      title: "客户中心",
      hidden: false, // 路由是否隐藏：true隐藏，false显示
      icon: "HomeFilled",
      keepAlive:true,
    },
    redirect: '/customer_management',
    children: [{
        path: '/customer_management',
        name: "customer_management", // 命名路由
        component: () => import("@/views/customer_hub/customer_management/index.vue"),
        meta: {
          title: "客户管理",
          hidden: false, // 路由是否隐藏：true隐藏，false显示
          icon: "Avatar",
          keepAlive:true,
        },
      }, {
        path: '/personnel_management',
        name: "personnel_management", // 命名路由
        component: () => import("@/views/customer_hub/personnel_management/index.vue"),
        meta: {
          title: "人员管理",
          hidden: false, // 路由是否隐藏：true隐藏，false显示
          icon: "UserFilled",
          keepAlive:true,
        },
      },
      {
        path: '/pipeline_management',
        name: "pipeline_management", // 命名路由
        component: () => import("@/views/customer_hub/pipeline_management/index.vue"),
        meta: {
          title: "管线管理",
          hidden: false, // 路由是否隐藏：true隐藏，false显示
          icon: "Pointer",
          keepAlive:true,
        },
      },
      {
        path: '/monitoring_point_management',
        name: "monitoring_point_management", // 命名路由
        component: () => import("@/views/customer_hub/monitoring_point_management/index.vue"),
        meta: {
          title: "监测点管理",
          hidden: false, // 路由是否隐藏：true隐藏，false显示
          icon: "Search",
          keepAlive:true,
        },
      },
      {
        path: '/rules_manager',
        name: "rules_manager", // 命名路由
        component: () => import("@/views/customer_hub/rules_manager/index.vue"),
        meta: {
          title: "规则管理",
          hidden: false, // 路由是否隐藏：true隐藏，false显示
          icon: "DocumentCopy",
          keepAlive:true,
        },
      },
    ]
  },
]


export const asyncRoutr_role = [
  {
    path: "/expert_countermeasures",
    component: () => import("@/views/layout/index.vue"),
    name: "expert_countermeasures", // 命名路由
    meta: {
      title: "专家对策",
      hidden: false, // 路由是否隐藏：true隐藏，false显示
      icon: "Share",
      keepAlive:true,
    },
    redirect: '/expert_advice',
    children: [{
      path: '/expert_advice',
      name: "expert_advice", // 命名路由
      component: () => import("@/views/expert_countermeasures/expert_advice/index.vue"),
      meta: {
        title: "专家建议",
        hidden: false, // 路由是否隐藏：true隐藏，false显示
        icon: "StarFilled",
        keepAlive:true,
      },
    },
    {
      path: '/problem_feedback',
      name: "problem_feedback", // 命名路由
      component: () => import("@/views/expert_countermeasures/problem_feedback/index.vue"),
      meta: {
        title: "问题反馈",
        hidden: false, // 路由是否隐藏：true隐藏，false显示
        icon: "QuestionFilled",
        keepAlive:true,
      },
    }, 
      {
      path: '/expert_archives',
      name: "expert_archives", // 命名路由
      component: () => import("@/views/expert_countermeasures/expert_archives/index.vue"),
      meta: {
        title: "专家档案",
        hidden: false, // 路由是否隐藏：true隐藏，false显示
        icon: "Histogram",
        keepAlive:true,
      },
    }, ]
  },
  // {
  //   path: "/system_center",
  //   component: () => import("@/views/layout/index.vue"),
  //   name: "system_center", // 命名路由
  //   meta: {
  //     title: "系统中心",
  //     hidden: false, // 路由是否隐藏：true隐藏，false显示
  //     icon: "Grid",
  //   },
  //   redirect: '/modify_user_information',
  //   children: [{
  //       path: '/modify_user_information',
  //       name: "modify_user_information", // 命名路由
  //       component: () => import("@/views/system_center/modify_user_information/index.vue"),
  //       meta: {
  //         title: "修改用户信息",
  //         hidden: false, // 路由是否隐藏：true隐藏，false显示
  //         icon: "UserFilled",
  //       },
  //     }, {
  //       path: '/change_password',
  //       name: "change_password", // 命名路由
  //       component: () => import("@/views/system_center/change_password/index.vue"),
  //       meta: {
  //         title: "修改密码",
  //         hidden: false, // 路由是否隐藏：true隐藏，false显示
  //         icon: "CirclePlusFilled",
  //       },
  //     },
      
  //   ]
  // },
  {
    path: "/customer_hub",
    component: () => import("@/views/layout/index.vue"),
    name: "customer_hub", // 命名路由
    meta: {
      title: "客户中心",
      hidden: false, // 路由是否隐藏：true隐藏，false显示
      icon: "HomeFilled",
      keepAlive:true,
    },
    redirect: '/customer_management',
    children: [ {
        path: '/personnel_management',
        name: "personnel_management", // 命名路由
        component: () => import("@/views/customer_hub/personnel_management/index.vue"),
        meta: {
          title: "人员管理",
          hidden: false, // 路由是否隐藏：true隐藏，false显示
          icon: "UserFilled",
          keepAlive:true,
        },
      },
      {
        path: '/pipeline_management',
        name: "pipeline_management", // 命名路由
        component: () => import("@/views/customer_hub/pipeline_management/index.vue"),
        meta: {
          title: "管线管理",
          hidden: false, // 路由是否隐藏：true隐藏，false显示
          icon: "Pointer",
          keepAlive:true,
        },
      },
      {
        path: '/monitoring_point_management',
        name: "monitoring_point_management", // 命名路由
        component: () => import("@/views/customer_hub/monitoring_point_management/index.vue"),
        meta: {
          title: "监测点管理",
          hidden: false, // 路由是否隐藏：true隐藏，false显示
          icon: "Search",
          keepAlive:true,
        },
      },
     
    ]
  },
 ]
//#endregion


// 任意路由
// export const anyRouter = [{
//   path: "/:pathMatch(.*)*",
//   redirect: "/login",
//   name: "any",
//   meta: {
//     title: "任意路由",
//     hidden: true, // 路由是否隐藏：true隐藏，false显示
//   },
// }, ]
